<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ImagePrediction</title>
</head>
<body>
<form enctype='multipart/form-data' method='POST' action="\ImagePrediction" style="margin-left: 10px;margin-top: 10px;">
    <div>
        <label>特征集合</label>
        <select name="models"/>
        <option value="mobilenet_v2-b0353104.pth">MobileNetV2</option>
        <option value="resnet50-19c8e357.pth" selected>ResNet50</option>
        <option value="inception_v3_google-1a9a5a14.pth">InceptionV3</option>
        <option value="densenet121-a639ec97.pth">DenseNet121</option>
        </select>
    </div>
    <div>
        <input type="file" name="file"/>
        <input type="submit" name="submit" value="上传"/>
    </div>
</form>
<div style="margin-left: 10px;margin-top: 20px;">
    {% if filename %}
    <img src="/image/uploads/{{ filename }}" width="500px">
    {% endif %}
    <table>
        {% for curr in resList %}
        <tr>
            <td>{{ curr.eachPrediction }}</td>
            <td>{{ curr.eachProbability }}</td>
        </tr>
        {% endfor %}
    </table>
</div>
{% for msg in get_flashed_messages() %}
<p>{{ msg }}</p>
{% endfor %}
</body>
</html>